-module(shop11).
-export ([total/1]).
-import (lists, [map/2, sum/1]).

total(A) -> lists:sum(lists:map(fun({What,N}) -> shop:cost(What)*N end, A)).



